﻿using System.ComponentModel;

namespace SYH.Comp.AppEnum
{
    public class PartnerEnum
    {
        /// <summary>
        /// 渠道平台一级栏目
        /// </summary>
        public enum PartnerParentMenu
        {
            /// <summary>
            /// 系统管理
            /// </summary>
            [Description("系统管理")]
            SystemSet = 1,
            /// <summary>
            /// 业务中心
            /// </summary>
            [Description("业务中心")]
            Business = 12,//2
            /// <summary>
            /// 账户中心
            /// </summary>
            [Description("账户中心")]
            Account = 3,
            /// <summary>
            /// 支持中心
            /// </summary>
            [Description("支持中心")]
            Support = 4,
        }
        /// <summary>
        /// 服务类型
        /// </summary>
        public enum ServiceType
        {
            ///// <summary>
            ///// 基础版(普通会员)
            ///// </summary>
            //[Description("普通会员")]
            //Common = 0,
            /// <summary>
            /// 黄金会员
            /// </summary>
            [Description("黄金会员")]
            Advanced = 1,
            /// <summary>
            /// 白金会员
            /// </summary>
            [Description("白金会员")]
            Gold = 2,
            /// <summary>
            /// 钻石会员
            /// </summary>
            [Description("钻石会员")]
            Diamond = 3,
            /// <summary>
            /// 黄金版续费
            /// </summary>
            [Description("黄金版续费")]
            RenewalAdvanced = 4,
            /// <summary>
            /// 白金版续费
            /// </summary>
            [Description("白金版续费")]
            RenewalGold = 5,
            /// <summary>
            /// 钻石版续费
            /// </summary>
            [Description("钻石版续费")]
            RenewalDiamond = 6,
            /// <summary>
            /// 短信充值
            /// </summary>
            [Description("短信充值")]
            SmsAdd = 7
        }
        /// <summary>
        /// 获取服务名称
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public static string GetServiceName(object obj)
        {
            switch (obj.ToString())
            {
                case "1":
                    return "黄金会员";
                case "2":
                    return "白金会员";
                case "3":
                    return "钻石会员";
                case "4":
                    return "黄金版续费";
                case "5":
                    return "白金版续费";
                case "6":
                    return "钻石版续费";
                case "7":
                    return "短信充值";
                default:
                    return "无";
            }
        }
        /// <summary>
        /// 消费类型
        /// </summary>
        public enum SpendType
        {
            /// <summary>
            /// 网站提单
            /// </summary>
            [Description("网站提单")]
            WebAdd = 0,
            /// <summary>
            /// 网站续费
            /// </summary>
            [Description("网站续费")]
            WebRenewal = 1,
            /// <summary>
            /// 短信充值
            /// </summary>
            [Description("短信充值")]
            SmsRenewal = 2
        }

        /// <summary>
        /// 渠道 操作日志类型
        /// </summary>
        public enum LogType
        {
            /// <summary>
            /// 登陆日志
            /// </summary>
            [Description("登陆日志")]
            LoginLog = 1,
            /// <summary>
            /// 系统日志
            /// </summary>
            [Description("系统日志")]
            SystemSetLog = 2,
            /// <summary>
            /// 业务日志
            /// </summary>
            [Description("业务日志")]
            BueinessLog = 3,
        }
        /// <summary>
        /// 获取登陆日志类型
        /// </summary>
        /// <param name="ojb"></param>
        /// <returns></returns>
        public static string GetLogType(object obj)
        {
            switch (obj.ToString())
            {
                case "1":
                    return "登陆日志";
                case "2":
                    return "系统日志";
                case "3":
                    return "业务日志";
            }
            return string.Empty;
        }
        /// <summary>
        /// 渠道会员代码申请审核状态
        /// </summary>
        public enum CodeTypeAudit
        {
            /// <summary>
            /// 待审核
            /// </summary>
            [Description("待审核")]
            Auditing = 0,
            /// <summary>
            /// 审核通过
            /// </summary>
            [Description("审核通过")]
            AuditSuccess = 1,
            /// <summary>
            /// 审核不通过
            /// </summary>
            [Description("审核不通过")]
            AuditFail = 2,
        }
        /// <summary>
        /// 获取 渠道会员代码申请审核状态 
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public static string GetCodeTypeAudit(object obj)
        {
            switch (obj.ToString())
            {
                case "0":
                    return "<font color='red'>待审核</font>";
                case "1":
                    return "<font color='green'>审核通过</font>";
                case "2":
                    return "<font color='blue'>审核不通过</font>";
            }
            return string.Empty;
        }
        /// <summary>
        /// 统计代码类型
        /// </summary>
        public enum CodeType
        {
            /// <summary>
            /// 留言板
            /// </summary>
            [Description("留言板")]
            Message = 0,
            /// <summary>
            /// TQ
            /// </summary>
            [Description("TQ")]
            Tq = 1,
            /// <summary>
            /// 百度统计
            /// </summary>
            [Description("百度统计")]
            Baidu = 2,
        }
        /// <summary>
        /// 获取统计代码类型 
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public static string GetCodeType(object obj)
        {
            switch (obj.ToString())
            {
                case "0":
                    return "留言板";
                case "1":
                    return "TQ洽谈";
                case "2":
                    return "百度统计";
            }
            return string.Empty;
        }
    }
}
